@extends('plugin.layout.baseDoing')
@section('add_css')
    <link rel="stylesheet" href="{{ ___('/admin/js/jquery.tagsinput.css') }}">
@endsection
@section('content')
    <div class="layui-card">

        <div class="layui-card-body">
            <div class="layui-form layui-form-kongqi" lay-filter="">
                {{ csrf_field() }}

                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <ul class="layui-tab-title">
                        <li class="layui-this">基本信息</li>
                        <li>SEO设置</li>


                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">

                            @include('plugin.tpl.form.text',[
                                'data'=>[
                                    'name'=>'name',
                                    'title'=>'名称',
                                    'tips'=>'',
                                    'value'=>'',
                                    'rq'=>'rq'
                            ]])
                            @include('plugin.tpl.form.text',[
                               'data'=>[
                                   'name'=>'sub_name',
                                   'title'=>'简短标题',
                                   'tips'=>'',
                                   'value'=>'',
                                   'rq'=>''
                           ]])
                            @include('plugin.tpl.form.text',[
                                'data'=>[
                                    'name'=>'group_type',
                                    'title'=>'调用组',
                                    'tips'=>'',
                                    'value'=>'',
                                    'rq'=>'rq'
                            ]])


                            @include('plugin.tpl.form.text',[
                                'data'=>[
                                    'name'=>'sort',
                                    'title'=>'排序',
                                    'tips'=>'',
                                    'value'=>'0',
                                    'rq'=>'rq'
                                ]
                            ])

                            @include('plugin.tpl.form.textarea',[
                                'data'=>[
                                    'name'=>'content',
                                    'title'=>'正文',
                                    'tips'=>'',
                                    'value'=>'',
                                    'rq'=>'rq'
                                ]
                            ])

                        </div>

                        <div class="layui-tab-item ">
                            @include('plugin.tpl.form.seo')
                        </div>

                    </div>
                </div>
                @include('admin.tpl.form.submit')
            </div>
        </div>
    </div>

@endsection
@section('foot_js')
    @include('plugin.layout.editor.editor')

    <script>
        layui.use(['index', 'form'], function () {
            var form = layui.form;
            form.on('switch(is_all)', function (data) {
                if (!data.elem.checked) {
                    $("#city_select").show();

                } else {
                    $("#city_select").hide();
                }
            });
            editor("#content");

        })
    </script>

@endsection